package ca.mcgill.model.functional;

import java.util.ArrayList;
import java.util.List;

public class State {

	private List<Transition> outTransitions = new ArrayList<Transition>();
	private List<Transition> inTransition = new ArrayList<Transition>();

	private String name;

	public State(String name) {
		this.name = name;
	}

	public String getName(){
		return this.name;
	}
	
	public List<Transition> getOutTransitions() {
		return outTransitions;
	}

	public void setOutTransitions(List<Transition> outTransitions) {
		this.outTransitions = outTransitions;
	}

	public List<Transition> getInTransition() {
		return inTransition;
	}

	public void setInTransition(List<Transition> inTransition) {
		this.inTransition = inTransition;
	}

	public void addInTransition(Transition inTransition) {
		this.inTransition.add(inTransition);
	}

	public void addOutTransition(Transition outTransition) {
		this.outTransitions.add(outTransition);
	}

}
